package com.example.demo.repository;

import com.example.demo.domain.Message;
import com.example.demo.viewmodel.admin.message.MessagePageRequestVM;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    //selectALL
    List<Message> page(MessagePageRequestVM requestVM);
    //select by id
    List<Message> selectByIds(List<Integer> ids);
    //read
    int readAdd(Integer id);
}
